package com.atguigu.factory;

import com.atguigu.bean.AirPlane;

/**
 * 静态工厂
 * @author 伟哥
 */
public class AirPlaneStaticFactory {

    public static AirPlane getAirPlane(String jzname){
        System.out.println("静态工厂...正在为你造飞机");
        AirPlane airPlane = new AirPlane();
        airPlane.setFdj("太行");
        airPlane.setFjzName("副机长");
        airPlane.setJzName(jzname);
        airPlane.setPersonNumber(300);
        airPlane.setYc("198.98m");

        return airPlane;
    }
}
